<?php
    /**
     * Created by PhpStorm.
     * User: lance
     * Date: 2017/10/26
     * Time: 14:50
     */
    use think\Db;
    return [
        //客户资料信息
        'customer_info' => [
            ['hidden','id'],
            ['text', 'name', '姓名', '必填'],
            ['radio', 'sex', '性别', '', ['男' => '男', '女' => '女'], '男'],
            ['select', 'cert_type', '证件类型', '', ['身份证' => '身份证'], '身份证'],
            ['text', 'cert_number', '证件号码', '必填'],
            ['date', 'birthday', '生日'],
            ['text', 'tel1', '联系电话', '必填'],
            ['text', 'tel2', '其他号码'],
            ['text', 'trade', '行业'],
            ['text', 'career', '职业'],
            ['text', 'nature', '性格'],
            ['textarea', 'hobbies', '兴趣特长'],
        ],
        //客户列表
        'customer_list' => [
            ['name', '姓名'],
            ['sex', '性别'],
/*            ['cert_type', '证件类型'],
            ['cert_number', '证件号码'],*/
            ['tel1', '联系电话'],
            ['trade', '行业'],
            ['career', '职业'],
        ],
        //日志动作类型
        'log_action'    => [
            1 => '管理员手动添加用户',
            2 => '领导手动添加用户',
            3 => '客户经理手动添加用户',

            4 => '管理员批量导入用户',
            5 => '领导批量导入用户',
            6=> '客户经理批量导入用户',

            7 => '领导分配用户',
            8 => '系统分配用户',

            9  => '修改客户资料',
            10  => '客户资料移交',
            11  => '客户资料接收',
            12 => '客户资料拒接',

            13 => '划分客户等级',
        ],
        //用户贷款数据
        'loan_info' => [
            ['select','type_id','贷款类型','',Db::name('customer_loan_type')->where('status',1)->column('id,name')],
            ['text','number','借据号',"<b class='text-red'>必填</b>"],
            ['datetime','time','贷款时间',"<b class='text-red'>必填</b>"],
            ['number','money','贷款金额/元',"<b class='text-red'>必填金额必须大于0</b>",'1','1'],
            ['number','loan_time','贷款时长/单位为月',"<b class='text-red'>必填时长必须大于0</b>",'1','1'],
        ]
    ];